import {createApp} from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
import './assets/css/icon.css'

import storage from './utils/storage'
import time from './utils/time'
import moneny from './utils/moneny'

const app = createApp(App)
installElementPlus(app)


//添加全局变量和属性
app.config.globalProperties.$storage = storage
app.config.globalProperties.$time = time
app.config.globalProperties.$money = moneny

app.use(createPinia())
    .use(router)
    .mount('#app')